package commands

import (
	"project/design/command/recievers"
)

type LightOffCommand struct {
	*recievers.Light
}

func CreateLightOffCommand(light *recievers.Light) *LightOffCommand {
	return &LightOffCommand{light}
}

func (loc *LightOffCommand) Execute() {
	loc.Off()
}

func (loc *LightOffCommand) Undo() {
	loc.On()
}
